package cn.bytecollege.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserVO {
    private Integer userId;
    @Pattern(regexp = "\\w{6,12}",message = "用户名必须是长度为6-12位的数字，字母，下划线")
    private String username;
//    @Range(min = 6,max = 20,message = "密码不合法")
    private String password;
    private String power;
    private Integer evaluationPower;
}
